/*
 * 
 * Libman
 * 
 * Daniel Kaufmann, Martin Lang, Simon Moosbrugger,
 * Stefan Mayer, Stephan Halbeisen
 * 
 */
package model;

/**
 * The Class PersonData.
 */
public class PersonData implements java.io.Serializable {

	/** The Constant serialVersionUID. */
	private static final long serialVersionUID = 1L;
	
	/** The id. */
	private Integer id;
	
	/** The person type. */
	private PersonType personType;
	
	/** The first name. */
	private String firstName;
	
	/** The last name. */
	private String lastName;

	/**
	 * Instantiates a new person data.
	 */
	public PersonData() {
	}

	/**
	 * Instantiates a new person data.
	 * 
	 * @param personType
	 *            the person type
	 * @param firstName
	 *            the first name
	 * @param lastName
	 *            the last name
	 */
	public PersonData(PersonType personType, String firstName, String lastName) {
		this.personType = personType;
		this.firstName = firstName;
		this.lastName = lastName;
	}

	/**
	 * Gets the id.
	 * 
	 * @return the id
	 */
	public Integer getId() {
		return this.id;
	}

	/**
	 * Sets the id.
	 * 
	 * @param id
	 *            the new id
	 */
	public void setId(Integer id) {
		this.id = id;
	}

	/**
	 * Gets the person type.
	 * 
	 * @return the person type
	 */
	public PersonType getPersonType() {
		return this.personType;
	}

	/**
	 * Sets the person type.
	 * 
	 * @param personType
	 *            the new person type
	 */
	public void setPersonType(PersonType personType) {
		this.personType = personType;
	}

	/**
	 * Gets the first name.
	 * 
	 * @return the first name
	 */
	public String getFirstName() {
		return this.firstName;
	}

	/**
	 * Sets the first name.
	 * 
	 * @param firstName
	 *            the new first name
	 */
	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}

	/**
	 * Gets the last name.
	 * 
	 * @return the last name
	 */
	public String getLastName() {
		return this.lastName;
	}

	/**
	 * Sets the last name.
	 * 
	 * @param lastName
	 *            the new last name
	 */
	public void setLastName(String lastName) {
		this.lastName = lastName;
	}

}
